package cn.tedu.yl.professional.mapper;

import cn.tedu.yl.professional.pojo.dto.ProfessionalDelParam;
import cn.tedu.yl.professional.pojo.dto.ProfessionalQuery;
import cn.tedu.yl.professional.pojo.entity.Professional;
import cn.tedu.yl.professional.pojo.vo.ProfessionalVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ProfessionalMapper {
    List<ProfessionalVO> selectList(ProfessionalQuery professionalQuery);
    int selectTotal(ProfessionalQuery professionalQuery);

    ProfessionalVO selectDetailById(Integer id);

    void insert(Professional professional);

    void update(Professional professional);

    void delete(@Param("ids") List<Integer> ids);
}
